

import 'package:dio/dio.dart';

class DioRequest {
  final _dio = Dio();
  // 工具最终都要通过 dio
  get(String url, {Map<String, dynamic>? params}) {}
  post(String url, {Map<String, dynamic>? data}) {}
  put(String url, {Map<String, dynamic>? data}) {}
  delete(String url,
      {Map<String, dynamic>? data, Map<String, dynamic>? params}) {}
  upload(String url) {}
}



final dioRequest = DioRequest();


// rcp 中delete要传递请求体参数

// rcp.createSession() instance.delete(url, )
// new rcp.Request("url", {}, null, {})
// instace.fetch(request)